package net.xiangcaowuyu.mybatisplussample.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import lombok.Data;

/**
 * Description:
 *
 * @author : laughing
 * DateTime: 2021-04-22 9:21
 */
@Data
@TableName(value = "`user`")
public class User implements Serializable {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 姓名
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 年龄
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 逻辑删除字段
     */
    @TableField(value = "del_flag")
    @TableLogic
    private String delFlag;

    /**
     * 租户
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_AGE = "age";

    public static final String COL_EMAIL = "email";
}